package com.vfa.fishing.common;

import java.util.ArrayList;

import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.util.pool.GenericPool;
import com.vfa.fishing.animal.Fish;

public class ObjectPool extends GenericPool<AbstractObject> {
	AbstractObject obj;
	private Engine mEngine;
	private ArrayList<AbstractObject> arrObject;
	public ObjectPool(AbstractObject object) {// khi truyen vao la cac doi tuong cu the
		obj = object;
	}

	@Override
	protected AbstractObject onAllocatePoolItem() {
//		if(obj.kindOfObject == Constant.FISH){
//			Fish fish = (Fish)obj;
//			return fish;
//		}
		return null;
	}

}
